package zms.roya.designpattern.samplefactory;

public class SimpleFactory {
	
	public static dongwu Createdongwu(String dongwuname)
	{
		if("Tiger".equals(dongwuname)){
			return new Tiger();
		}
		else if ("Dolphin".equals(dongwuname))
		{
			return new Dolphin();
		}
		return null;
	}

}
